package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends BaseTest {
	@Test
	public void testNonEmptyEntryCreation () throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getContactHelper().gotoNewContactPage();
		ContactData entry = new ContactData("First name1", "Last name1", "Address1", "35814587", "8800123456", "12345678", "winter2012@mail.ru", "test1@yandex.ru", "2", "January", "1975", "Address1-2", "Home 1");
		app.getContactHelper().fillContactForm(entry);
		app.getContactHelper().submitContactCreation();
		app.getContactHelper().returnToHomePage();
	}
	@Test
	public void testEmptyEntryCreation () throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getContactHelper().gotoNewContactPage();
		app.getContactHelper().fillContactForm(new ContactData("", "", "", "", "", "", "", "", "-", "-", "", "", ""));
		app.getContactHelper().submitContactCreation();
		app.getContactHelper().returnToHomePage();
	}
}
